package com.ymatou.iapi.productmanager.service.old;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class SetPspStatusCall extends YmatouAutoTestCall{
	private static String opurl ="api/SellerProduct/SetPspStatus";
	
	public SetPspStatusCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	
	public JSONObject call(int sellerId,String productId,boolean isPassViolate,boolean isRemovePsp){
		return this.callAndGetReturnData(MapUtil.hashMap("SellerId", sellerId,"ProductId",productId,"IsPassViolate",isPassViolate,"IsRemovePsp",isRemovePsp));
	}
	
	
	public static void main(String args[]){
		new SetPspStatusCall().call(3383,"4ac439f5-69c6-4784-b2e9-05fdfc92bdb7",true,false);
	}
	
	
	
}
